<include file="Public:header" />

<body>
    <include file="Public:nav" /> <span id="result"></span>
    <div class="container">
        <div class="page-header">
            <h3>{$Think.lang._Language_}</h3>
        </div>
        <empty name="lang_setting">

            <h3> 没有设置项</h3>

            <else />
                <form class="form-horizontal" role="form" method="post" action="{:U('Update')}" id="forms">

                    <div class="MiniBox2">

                        <foreach name="lang_setting" item="vo" key="k" >
                            <if condition="$vo.type eq 'select'">
                                <label for="">{:L($vo['code'])}{$Think.lang.lang_Modify}</label>
                                <select class="form-control miniinput2" name="{$vo.code}" selected="{$Think.config.DEFAULT_LANG}">

                                    <foreach name="vo.store_range" item="vo1">
                                        <option value="{$vo1}">{$vo1}</option>
                                    </foreach>
                                </select>

                            </if>


                        </foreach>

                        <button type="submit" class="btn btn-info ">{$Think.lang._Safe_}{$Think.lang._Language_}</button>
                        <a class="btn btn-info" href="{:U('/Admin/Lang')}?l={$Think.config.DEFAULT_LANG}">
                            {$Think.lang._Change_} {$Think.config.DEFAULT_LANG}</a>
                    </div>
                </form>


        </empty>



        <include file="Public:Copy" />
    </div>
    <script src="[!Public]Js/jquery.form.js"></script>
    <script language="javascript" type="text/javascript">
        $('#forms').ajaxForm({
            success: function(data) {
                var Mini = "";
                if (data.status == 1) {
                    Mini = "<div class='alert alert-success'>" + data.info + "</div>";
                } else {
                    Mini = "<div class='alert alert-danger'>" + data.info + "</div>";
                }
                $('#result').html(Mini).show();
                //location = location;
                setTimeout(function() {
                    if(data.url){
                        location = location;
                    }
                    $('#result').html('').fadeOut();
                }, 3000);
            },
            dataType: 'json'
        });
    </script>
</body>

</html>